package com.dance.spring.learn.testdemo;

import com.dance.spring.learn.jdbc.config.SpringJdbcConfig;
import com.dance.spring.learn.jdbc.service.UserService;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

//@ExtendWith(SpringExtension.class)
//@ContextConfiguration(classes = SpringJdbcConfig.class)
@SpringJUnitConfig(classes = SpringJdbcConfig.class)
public class JTest5 {

    @Autowired
    private UserService userService;

    @Test
    public void test(){
        userService.accountMoney();
    }

}
